package com.rds.document.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.rds.common.annotation.Excel;
import com.rds.common.core.domain.BaseEntity;

/**
 * 文档库对象 rda_library
 *
 * @author rds
 * @date 2021-07-21
 */
public class RdaLibrary extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 描述 */
    @Excel(name = "描述")
    private String description;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** ownerid */
    @Excel(name = "ownerid")
    private Integer ownerid;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date modifyTime;

    /** 状态id */
    @Excel(name = "状态id")
    private Integer stateid;

    /** 类型id */
    @Excel(name = "类型id")
    private Integer typeid;

    /** 策略id */
    @Excel(name = "策略id")
    private Integer policyid;

    /** 公司id */
    @Excel(name = "公司id")
    private Long companyId;

    /** 版本 */
    @Excel(name = "版本")
    private String revision;

    /*来源系统对象Id**/
    private String objectId;
    /*来源系统名称**/
    private String source;

    /*是否可操作**/
    private String operational;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setDescription(String description)
    {
        this.description = description;
    }

    public String getDescription()
    {
        return description;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setOwnerid(Integer ownerid)
    {
        this.ownerid = ownerid;
    }

    public Integer getOwnerid()
    {
        return ownerid;
    }
    public void setModifyTime(Date modifyTime)
    {
        this.modifyTime = modifyTime;
    }

    public Date getModifyTime()
    {
        return modifyTime;
    }
    public void setStateid(Integer stateid)
    {
        this.stateid = stateid;
    }

    public Integer getStateid()
    {
        return stateid;
    }
    public void setTypeid(Integer typeid)
    {
        this.typeid = typeid;
    }

    public Integer getTypeid()
    {
        return typeid;
    }
    public void setPolicyid(Integer policyid)
    {
        this.policyid = policyid;
    }

    public Integer getPolicyid()
    {
        return policyid;
    }
    public void setRevision(String revision)
    {
        this.revision = revision;
    }

    public String getRevision()
    {
        return revision;
    }

    public Long getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Long companyId) {
        this.companyId = companyId;
    }

    public String getObjectId() {
        return objectId;
    }

    public void setObjectId(String objectId) {
        this.objectId = objectId;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getOperational() {
        return operational;
    }

    public void setOperational(String operational) {
        this.operational = operational;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("description", getDescription())
            .append("status", getStatus())
            .append("ownerid", getOwnerid())
            .append("createTime", getCreateTime())
            .append("modifyTime", getModifyTime())
            .append("stateid", getStateid())
            .append("typeid", getTypeid())
            .append("policyid", getPolicyid())
            .append("revision", getRevision())
            .append("operational", getOperational())
            .toString();
    }
}
